]> dgit.raspbian.org Git - gnome-shell.git/commit
keyboard: Run dispose manually on virtual input device when destroying
authorJonas Dreßler <verdre@v0yd.nl>
Sat, 28 Mar 2020 10:54:32 +0000 (11:54 +0100)
committerverdre <jonas@dressler.it>
Sat, 28 Mar 2020 17:31:04 +0000 (17:31 +0000)
commitba8210ea98a7acce5341e9677883f0640e023564
tree898c03eaf6cc67f0fd51f14d79abfc534fdf53b1
parent656168543f30b20cd33b456bc39d202a26ec090a
keyboard: Run dispose manually on virtual input device when destroying

We want to make sure any buttons that are still pressed on the virtual
input device used by the OSK are released immediately when destroying
the OSK. Do this by calling run_dispose() on the destroy() function of
the KeyboardController, which makes sure we don't have to wait for the
garbage collection to dispose the object and a still pressed key remains
being pressed until the GC kicks in.

Related: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/2287

Fixes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/956
https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1141
js/ui/keyboard.js